package com.ymttest.common.enums;

public enum RiskVerifiedStatusEnum {

	// 风控检测未通过，取消订单
	Rejected(-1),

	// 风控初始状态
	Init(0),

	// 风控审核中
	Auditing(1),

	// 风控检测通过
	Pass(2);

	private int intValue;
	private static java.util.HashMap<Integer, RiskVerifiedStatusEnum> mappings;

	private synchronized static java.util.HashMap<Integer, RiskVerifiedStatusEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, RiskVerifiedStatusEnum>();
		}
		return mappings;
	}

	private RiskVerifiedStatusEnum(int value) {
		intValue = value;
		RiskVerifiedStatusEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static RiskVerifiedStatusEnum forValue(int value) {
		return getMappings().get(value);
	}
}
